<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
{{--输出验证错误信息--}}
@if(count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach($errors -> all() as $error)
                <li>{{$error}}</li>
            @endforeach
        </ul>
    </div>
@endif

<form action="/home/val" method="post">
    <input type="text" name="name" value=""><br>
    <input type="text" name="age" value=""><br>
    <input type="email" name="email" value=""><br>
    {{csrf_field()}}
    
    <p>验证码： <input type="text" name="captcha"> <img src="{{captcha_src()}}" alt=""></p>
    <button type="submit">提交</button>



</form>

</body>
</html>